#!/usr/bin/env python
# --*-- encoding:utf-8 --*-- 

from django.db import models

class SMSLog(models.Model):
    u'''
    短信发送日志
    '''
    phone = models.CharField(u'手机号码(飞信登录账户)',max_length=50)
    receiver = models.CharField(u'接受手机ID',max_length=1024,blank=True, null=True)
    ip = models.CharField(u'登录IP',max_length=20,blank=True, null=True)
    time = models.DateTimeField(u'登录时间',blank=True, null=True,auto_now_add=True)
    
    class Meta:
        ordering = ['-time']